import http from "@/api/axios";
import { BusinessType } from "@/api/moduleConfig";
export const getListApi = (data: PaymentRegistration.SearchParams) => {
  return http({
    method: "post",
    url: `${BusinessType.finance}/biz/financePaymentSerial/pageData`,
    data
  });
};
export const getPageStaticApi = (data: PaymentRegistration.SearchParams) => {
  return http({
    method: "post",
    url: `${BusinessType.finance}/biz/financePaymentSerial/pageStat`,
    data
  });
};
// 新增付款流水
export const addPaymentSerialApi = (data: PaymentRegistration.AddPaymentWater) => {
  return http({
    method: "post",
    url: `${BusinessType.finance}/biz/financePaymentSerial/savePaymentSerial`,
    data
  });
};
// 导入费用流水
export const importPaymentWaterApi = (data: FormData) => {
  return http({
    method: "post",
    url: `${BusinessType.finance}/biz/financePaymentSerial/importPaymentSerial`,
    data,
    headers: {
      "Content-type": "multipart/form-data"
    }
  });
};
// 删除付款流水
export const deletePaymentWaterApi = (id: string) => {
  return http({
    method: "post",
    url: `${BusinessType.finance}/biz/financePaymentSerial/removePaymentSerial/${id}`
  });
};
// 查看费用核销信息
export const getWriteOffFeeInfoApiByWaterIdApi = (id: string) => {
  return http({
    method: "post",
    url: `${BusinessType.finance}/biz/financePaymentSerial/getFinanceWriteAmountData/${id}`
  });
};

// 导出付款登记excel
export const getFinancePaymentSerialExcelListApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: `export/biz/exportExcel/getFinancePaymentSerialExcelList`,
    data
  });
};
